<?php /* Smarty version 2.6.26, created on 2013-10-15 15:33:41
         compiled from ./admin/account.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../templates/admin/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php if ($this->_tpl_vars['action'] == 'modify'): ?>
<div class="main-div">
<form name="theForm" method="post" action="account.php?act=update">
<table width="100%">
  <tr>
    <td class="label">用户名</td>
    <td>
      <input type="text" name="username" maxlength="20" value="<?php echo $this->_tpl_vars['user']['username']; ?>
" size="34"/></td>
  </tr>
  <tr>
    <td class="label">Email地址</td>
    <td>
      <input type="text" name="email" value="<?php echo $this->_tpl_vars['user']['email']; ?>
" size="34" /></td>
  </tr>
  <tr>
    <td class="label">旧密码</td>
    <td>
      <input type="password" name="old_password" maxlength="32" size="34" /></td>
  </tr>
  <tr>
    <td class="label">新密码</td>
    <td>
      <input type="password" name="password" maxlength="32" size="34" /><span style="color:purple">&nbsp;如果新密码为空则默认不修改</span></td>
  </tr>
  <tr>
    <td class="label">确认密码</td>
    <td>
      <input type="password" name="pwd_confirm" maxlength="32" size="34" /></td>
  </tr>

  <tr>
    <td colspan="2" align="center">
      <input type="submit" value="确定" class="button" />&nbsp;&nbsp;&nbsp;
      <input type="reset" value="重置" class="button" />
  </tr>
</table>
</form>
</div>
<?php endif; ?>
<?php if ($this->_tpl_vars['action'] == 'message'): ?>
<div class="main-div">
<table width="100%">
  <tr>
    <td class="label">用户名</td>
    <td><?php echo $this->_tpl_vars['user']['username']; ?>
</td>
  </tr>
  <tr>
    <td class="label">Email</td>
    <td><?php echo $this->_tpl_vars['user']['email']; ?>
</td>
  </tr>
</table>
</div>
<?php endif; ?>